<script setup>
import { useRouter } from 'vue-router';
import { defineProps } from 'vue';
const router = useRouter(); // 获取当前路由对象

const goback = () => {
    router.go(-1); // 返回上一页
}

let props = defineProps({ // 定义props属性，用于接收父组件传递的数据
    content: ""
})
</script>

<template>
    <!-- #页头 -->
    <el-page-header title="返回" @back="goback">
        <template #content>
          <span class="text-large font-600 mr-3"> {{props.content}} </span>
        </template>
      </el-page-header>
</template>

<style scoped>

</style>
